package com.wicket.okrcomponent.biz.service.dto.common;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc MessageTemplateDto
 * @使用场景
 */
@Data
public class MessageTemplateDto extends BaseDto implements Serializable {

  /**
   * 消息模板ID
   */
  @ApiModelProperty("消息模板ID")
  private String messageTemplateId;

  /**
   * 消息模板标识
   */
  @ApiModelProperty("消息模板标识")
  private String messageTemplateCode;

  /**
   * 消息模板名称
   */
  @ApiModelProperty("消息模板名称 ")
  private String messageTemplateName;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      MessageTemplateDto that = (MessageTemplateDto) o;
      return  messageTemplateId == that.messageTemplateId&&messageTemplateCode == that.messageTemplateCode&&messageTemplateName == that.messageTemplateName&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), messageTemplateId,messageTemplateCode,messageTemplateName,subjectLifeCycle,operationInductionId,operateTime);
    }

}
